package com.learn.yu.aop;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author : Yu.Tan
 * @date : 2023/6/15 16:20
 * @desc : **
 */
public class AopApp {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("Spring-Aop.xml");
        AopDemoServiceImpl demoService = context.getBean("aopDemoService", AopDemoServiceImpl.class);
        demoService.aopMethod1();
        demoService.aopMethod2();
        try {
            demoService.aopMethod3();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
